//
//  EBFile.h
//  UMDReader
//
//  Created by 张 霄鹤 on 10-2-1.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EBHeader.h"
#import "EBChapter.h"
#import "BEDataInputStream.h"

#define EBF_MAGIC 0x9EBF

@interface EBFile : NSObject {
	BOOL crypted;
	EBHeader *header;
	NSMutableData *data;
	NSMutableArray *chapters;
}

@property (nonatomic, readonly) NSMutableArray *chapters;

- (void)read:(BEDataInputStream *)din;

- (void)loadData:(char *)buf length:(NSInteger)rlen;

- (NSString *)getTitle;

@end
